﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DetalhesClienteEdit.ascx.cs" Inherits="UserControls_DetalhesClienteEdit" %>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    DataObjectTypeName="ProfileWrapper" SelectMethod="GetData" 
    TypeName="ProfileDataSource" UpdateMethod="UpdateData">
</asp:ObjectDataSource>

<asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1">
  <EditItemTemplate>
    <table class="UserDetailsTable">
      <tr>
        <td>
         <asp:Image ID="Image1" runat="server" ImageUrl="~/ImagensSite/pessoa3.jpg" /> Nome Completo:
        </td>
        <td width="350px">
          <asp:TextBox Width="340px" ID="NomeClienteTextBox" runat="server" Text='<%# Bind("nome") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image8" runat="server" ImageUrl="~/ImagensSite/casa.jpg" />Endereço:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="EnderecoTextBox" runat="server" Text='<%# Bind("endereco") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image13" runat="server" ImageUrl="~/ImagensSite/numero.jpg" />Número:
        </td>
        <td>
          <asp:TextBox Width="34px" ID="NumeroTextBox" runat="server" Text='<%# Bind("numero") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image14" runat="server" ImageUrl="~/ImagensSite/bairro.jpg" />Bairro:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="BairroTextBox" runat="server" Text='<%# Bind("bairro") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image2" runat="server" ImageUrl="~/ImagensSite/cidade2.png" />Cidade:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="CidadeTextBox" runat="server" Text='<%# Bind("cidade") %>' />
        </td>
      </tr>

      <tr>
        <td>
          <asp:Image ID="Image9" runat="server" ImageUrl="~/ImagensSite/telefone.jpg" />Telefone Fixo:
        </td>
        <td>
          <asp:TextBox Width="100px" ID="TelefoneTextBox" runat="server" Text='<%# Bind("telefone") %>' />
        </td>
      </tr>
       <tr>
        <td>
          <asp:Image ID="Image10" runat="server" ImageUrl="~/ImagensSite/celular2.jpg" />Celular:
        </td>
        <td>
          <asp:TextBox Width="100px" ID="CelularTextBox" runat="server" Text='<%# Bind("celular") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image11" runat="server" ImageUrl="~/ImagensSite/email.jpg" />Email:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="EmailTextBox" runat="server" Text='<%# Bind("email") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
            Text="Atualizar" />&nbsp;<asp:Button ID="UpdateCancelButton" runat="server" CausesValidation="False"
              CommandName="Cancel" Text="Cancelar" />
        </td>
      </tr>
    </table>
  </EditItemTemplate>

  <ItemTemplate>
    <table class="UserDetailsTable">
     <tr>
        <td>
          <asp:Image ID="Image1" runat="server" ImageUrl="~/ImagensSite/pessoa3.jpg" />Nome Completo:
        </td>
        <td width="350px">
          <asp:TextBox Width="340px" ID="NomeClienteTextBox" runat="server" Enabled="false" Text='<%# Bind("nome") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image8" runat="server" ImageUrl="~/ImagensSite/casa.jpg" />Endereço:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="EnderecoTextBox" runat="server" Enabled="false" Text='<%# Bind("endereco") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image13" runat="server" ImageUrl="~/ImagensSite/numero.jpg" />Número:
        </td>
        <td>
          <asp:TextBox Width="34px" ID="NumeroTextBox" runat="server" Enabled="false" Text='<%# Bind("numero") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image14" runat="server" ImageUrl="~/ImagensSite/bairro.jpg" />Bairro:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="BairroTextBox" runat="server" Enabled="false" Text='<%# Bind("bairro") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image2" runat="server" ImageUrl="~/ImagensSite/cidade2.png" />Cidade:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="CidadeTextBox" runat="server" Enabled="false" Text='<%# Bind("cidade") %>' />
        </td>
      </tr>

      <tr>
        <td>
          <asp:Image ID="Image9" runat="server" ImageUrl="~/ImagensSite/telefone.jpg" />Telefone Fixo:
        </td>
        <td>
          <asp:TextBox Width="100px" ID="TelefoneTextBox" runat="server" Enabled="false" Text='<%# Bind("telefone") %>' />
        </td>
      </tr>
       <tr>
        <td>
          <asp:Image ID="Image10" runat="server" ImageUrl="~/ImagensSite/celular2.jpg" />Celular:
        </td>
        <td>
          <asp:TextBox Width="100px" ID="CelularTextBox" runat="server" Enabled="false" Text='<%# Bind("celular") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Image ID="Image11" runat="server" ImageUrl="~/ImagensSite/email.jpg" />Email:
        </td>
        <td>
          <asp:TextBox Width="340px" ID="EmailTextBox" runat="server" Enabled="false" Text='<%# Bind("email") %>' />
        </td>
      </tr>
      <tr>
        <td>
          <asp:Button ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Editar" />
        </td>
      </tr>
    </table>
  </ItemTemplate>
</asp:FormView>

